cmake_minimum_required(VERSION 2.8)

set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR})
include_directories(/usr/local/include/mono-2.0)

add_library(func SHARED func.c)
set_target_properties(func
  PROPERTIES
  COMPILE_FLAGS "-g"
  )

install(TARGETS func
  LIBRARY
  DESTINATION output
  )

set(target string_marshal_benchmark)
add_executable(${target} string_marshal_benchmark.c)
set_target_properties(${target}
  PROPERTIES
  COMPILE_FLAGS "-g"
  )
target_link_libraries(${target}
  mono-2.0
  )

install(TARGETS ${target} 
  RUNTIME
  DESTINATION output
  )

